<?php if (($action & (Form::ACTION_ALL ^ Form::ACTION_INDEX)) == $action) { ?>
<span class="<?php echo $class ?>">
  <label for="<?php echo $name ?>"><?php echo $title ?></label>

  <span class="form-element-body">
    <input type="file" name="<?php echo $name ?>" />

    <br/><br/>
<?php } ?>

    <?php if ($thumb_src) { ?>
      <a href="<?php echo $image_src ?>" class="lightbox"><img src="<?php echo $thumb_src ?>"/></a>
    <?php } else { ?>
      <img src="<?php echo Simplify::config()->get('theme_url') ?>/images/icons/cross.png"/> missing!
    <?php } ?>
<?php if (($action & (Form::ACTION_ALL ^ Form::ACTION_INDEX)) == $action) { ?>
  </span>
</span>
<?php } ?>